﻿
<script type="text/javascript">
    
</script>


<div ng-controller="mainController">

    <uib-tabset>
        
        <uib-tab ng-repeat="t in tabs"
                 select="go(t.route)"
                 active="t.active">
            <uib-tab-heading>

                {{t.heading}}
                <button type="button"
                        class="close"
                        ng-if="t.close"
                        style="margin-left: 5px"
                        ng-click="close(t.route)">&times;</button>
            </uib-tab-heading>
            @*<ng-include src="'#/main'+t.url"></ng-include>
            *@
            <div ui-view="{{t.heading}}"></div>


        </uib-tab>
    </uib-tabset>
    
</div>
